/*
 * AbstractIcon.java  0.4.0 / Oct 25, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
package com.cute4j.swing;

/**
 * Abstract Icon Interface.
 *
 * @author Slobodan Vrkacevic
 * @version 0.4.0
 */
public abstract class AbstractIcon implements Icon {

// Protected Fields. -----------------------------------------------------------

  protected int width;
  protected int height;

// Protected Constructors. -----------------------------------------------------

  /**
   * Constructs new AbstractIcon object.
   *
   * @param width the icon's width
   * @param height the icon's height
   */
  protected AbstractIcon(int width, int height) {
    this.width = width;
    this.height = height;
  }

// Icon Interface Implementation. ----------------------------------------------

  /**
   * {@inheritDoc}
   */
  public int getIconWidth() {
    return width;
  }

  /**
   * {@inheritDoc}
   */
  public int getIconHeight() {
    return height;
  }

}
